///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Mar  6 2009)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "panelcostgui.h"

#include "res/edit_add.xpm"

///////////////////////////////////////////////////////////////////////////

PanelCostGui::PanelCostGui( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	wxBoxSizer* bSizer3;
	bSizer3 = new wxBoxSizer( wxVERTICAL );
	
	m_toolBar = new wxToolBar( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTB_FLAT|wxTB_HORIZONTAL ); 
	m_toolBar->AddTool( ID_PM_ADD_COST, wxEmptyString, wxBitmap( edit_add_xpm ), wxNullBitmap, wxITEM_NORMAL, _("Add cost"), _("Add cost") );
	m_toolBar->Realize();
	
	bSizer3->Add( m_toolBar, 0, wxEXPAND, 5 );
	
	m_listCost = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
	bSizer3->Add( m_listCost, 1, wxEXPAND, 5 );
	
	this->SetSizer( bSizer3 );
	this->Layout();
	
	// Connect Events
	this->Connect( ID_PM_ADD_COST, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( PanelCostGui::OnAddCost ) );
	m_listCost->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( PanelCostGui::OnItemActivated ), NULL, this );
}

PanelCostGui::~PanelCostGui()
{
	// Disconnect Events
	this->Disconnect( ID_PM_ADD_COST, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( PanelCostGui::OnAddCost ) );
	m_listCost->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( PanelCostGui::OnItemActivated ), NULL, this );
}
